]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Adapt to new Geoclue agent interface
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 24 Feb 2014 18:26:46 +0000 (18:26 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 25 Feb 2014 12:45:32 +0000 (12:45 +0000)
To be able to correctly setup dbus policy, I had to change the expected
agent D-Bus API a bit: Now object path is fixed and not different for
each user.

https://bugzilla.gnome.org/show_bug.cgi?id=725082

js/ui/status/location.js

index a202addf22a67775948ee1fdb779a573b7748715..6498a5eb992db29e693dd5113ed485d852eda76c 100644 (file)
@@ -52,11 +52,8 @@ const Indicator = new Lang.Class({
         this._item = new PopupMenu.PopupSubMenuMenuItem(_("Location"), true);
         this._item.icon.icon_name = 'find-location-symbolic';
 
-        var credentials = new Gio.Credentials();
-        var uid = credentials.get_unix_user();
         this._agent = Gio.DBusExportedObject.wrapJSObject(AgentIface, this);
-        this._agent.export(Gio.DBus.system,
-                          '/org/freedesktop/GeoClue2/Agent/' + uid);
+        this._agent.export(Gio.DBus.system, '/org/freedesktop/GeoClue2/Agent');
 
         this._item.status.text = _("On");
         this._onOffAction = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, this._onOnOffAction));